package other.callback;

public class MainExecute implements TaskExecute.NotifyCallback {

    public static void main(String[] args) {

        MainExecute mainExecute = new MainExecute();
        mainExecute.m1();
    }


    public void m1(){
        TaskExecute taskExecute = new TaskExecute(MainExecute.this);
        taskExecute.doSomething();
        taskExecute.closeSomething();
    }

    @Override
    public void onMessageBack(String message) {
        System.out.println("消息到达："+message);
    }

    @Override
    public void close(String message) {
        System.out.println("执行关闭操作:"+message);
    }
}
